<?php
// 返回所有数据
include 'base.php';

$sql = "SELECT * FROM `goods` LIMIT 0, 300";

$res = $conn->query($sql);

$arr = array();
while ($row = mysqli_fetch_assoc($res)) {
  array_push($arr, $row);
}

echo json_encode($arr);

